GtkAction: Hold a reference to proxy widgets
authorColin Walters <walters@verbum.org>
Thu, 25 Aug 2011 18:50:30 +0000 (14:50 -0400)
committerColin Walters <walters@verbum.org>
Tue, 20 Dec 2011 20:36:48 +0000 (15:36 -0500)
commit06307dd774da77a2d74f5529feee2ca120804e2f
tree5d76c99bb489ae6bbc145a9061aede8826bd5f98
parentb5577781d196521ebfc09c3ca1f443140018b2e1
GtkAction: Hold a reference to proxy widgets

Previously we expect that a proxy widget holds a reference to the
action via gtk_activatable_do_set_related_action().  However, it
is possible for the widget to still be in a floating state when
it adds itself to the the action.

This is a problem when gtk_action_get_proxies() gets called, because
we return floating objects back to the user.  And language bindings
aren't going to be expecting that.

Fix this by calling ref_sink() and unref().

https://bugzilla.gnome.org/show_bug.cgi?id=657367
gtk/gtkaction.c